package com.travel.server.manager.dto.response.article;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: LiZhenhui
 * @Date: 2018/12/20 11:29
 * @Desc:
 */
@Data
public class QueryArticleListResponse {

    @JSONField(name = "total_num")
    private Integer totalNum;

    @JSONField(name = "article_list")
    private List<ArticleItem> articleList;

    @Data
    public static class ArticleItem{

        private Integer id;

        private String title;

        @JSONField(name = "class_id")
        private Integer classId;

        @JSONField(name = "class_name")
        private String className;

        @JSONField(name = "is_publish")
        private Integer isPublish;

        @JSONField(name = "create_date", format = "yyyy-MM-dd")
        private Date createDate;
    }
}
